<?php

    class TrendController extends Zend_Controller_Action
    {

        public function init()
        {
            
        }

        public function indexAction()
        {
            $model = new Application_Model_Common();
            $trend_records = $model->getAllRecordDetail(RKN_PRODUCT, " is_trend='1' ", "rkn_prod_id DESC");
            $product_records = $model->getAllRecordDetail(RKN_PRODUCT, " status='1' ", "rkn_prod_id DESC");
            //prd($trend_records);
            //prd($product_records);
            $this->view->productdata = $product_records;
            $this->view->alldata = $trend_records;
        }

    }